using System;
using System.Collections.Generic;
using System.Text;
using Pay.TO;

namespace Pay.Data {
	/// <summary>
	/// 付款表：mc_Charge
	/// </summary>
	public partial class Charge {
		public Charge() {
		}

		/// <summary>
		/// 订单id
		/// </summary>
		public long Id { get; set; }
		/// <summary>
		/// 单号
		/// </summary>
		public string OrderNo { get; set; }
		/// <summary>
		/// 类型：收款1，升级2，有分账订单3,无分账订单4，充值代付5
		/// </summary>
		public int Type { get; set; }
		/// <summary>
		/// 商户id
		/// </summary>
		public long MerchantId { get; set; }
		/// <summary>
		/// 收款商户id
		/// </summary>
		public long? BindId { get; set; }
		/// <summary>
		/// 分润分配［］
		/// </summary>
		public string Profit { get; set; }
		/// <summary>
		/// 支付信息id
		/// </summary>
		public long? PayId { get; set; }
		/// <summary>
		/// 订单时间
		/// </summary>
		public long OrderTime { get; set; }
		/// <summary>
		/// 订单状态:1待支付，2已支付，3已取消
		/// </summary>
		public ChargeStatus Status { get; set; }
		/// <summary>
		/// 订单金额=应付金额+补贴金额
		/// </summary>
		public decimal OrderAmount { get; set; }
		/// <summary>
		/// 补贴金额
		/// </summary>
		public decimal SubsidyAmount { get; set; }
		/// <summary>
		/// 应付金额
		/// </summary>
		public decimal PayAmount { get; set; }
		/// <summary>
		/// 商户费率
		/// </summary>
		public decimal Fee { get; set; }
		/// <summary>
		/// 手续费=应付金额×fee
		/// </summary>
		public decimal FeeAmount { get; set; }
		/// <summary>
		/// o商户费率
		/// </summary>
		public decimal MerchantFee { get; set; }
		/// <summary>
		/// 实收金额＝应付金额-手续费-结算费
		/// </summary>
		public decimal Amount { get; set; }
		/// <summary>
		/// 支付成功后服务器回调该地址
		/// </summary>
		public string Notify { get; set; }
		/// <summary>
		/// 同步调用商户URL
		/// </summary>
		public string FrontNotify { get; set; }
		/// <summary>
		/// 如果发起过快捷支付，可以使用之前的返回的快捷支付协议号
		/// </summary>
		public string ProtocolNo { get; set; }
		/// <summary>
		/// 卡类型,借记：DC；贷记：CC
		/// </summary>
		public string CardType { get; set; }
		/// <summary>
		/// 开户姓名
		/// </summary>
		public string AccountName { get; set; }
		/// <summary>
		/// 身份证
		/// </summary>
		public string IdCard { get; set; }
		/// <summary>
		/// 开户银行编号
		/// </summary>
		public string BankCode { get; set; }
		/// <summary>
		/// 开户银行
		/// </summary>
		public string BankName { get; set; }
		/// <summary>
		/// 卡号
		/// </summary>
		public string AccountNo { get; set; }
		/// <summary>
		/// 预留手机号
		/// </summary>
		public string Mobile { get; set; }
		/// <summary>
		/// 有效期
		/// </summary>
		public string Vaild { get; set; }
		/// <summary>
		/// 失败原因
		/// </summary>
		public string Fail { get; set; }

		/// <summary>
		/// 是否同卡同出
		/// </summary>
		public bool IsOut { get; set; }
		/// <summary>
		/// 出款－手机号码
		/// </summary>
		public string RcvMobile { get; set; }
		/// <summary>
		/// 出款－开户银行名称
		/// </summary>
		public string RcvBankName { get; set; }
		/// <summary>
		/// 出款－行号
		/// </summary>
		public string RcvBankCode { get; set; }
		/// <summary>
		/// 出款－账户名称
		/// </summary>
		public string RcvAccountName { get; set; }
		/// <summary>
		/// 出款－卡号
		/// </summary>
		public string RcvAccountNo { get; set; }
		/// <summary>
		/// 出款－身份证号
		/// </summary>
		public string RcvIdCard { get; set; }
		/// <summary>
		/// 结算费
		/// </summary>
		public decimal SettleFee { get; set; }
		/// <summary>
		/// O商结算费
		/// </summary>
		public decimal MerchantSettle { get; set; }
		/// <summary>
		/// 平台费率
		/// </summary>
		public decimal PlatFee { get; set; }
		/// <summary>
		/// 平台结算费
		/// </summary>
		public decimal PlatSettle { get; set; }

		/// <summary>
		/// o单商户
		/// </summary>
		public virtual Merchant Merchant { get; set; }
		/// <summary>
		/// 小商户
		/// </summary>
		public virtual Merchant Binder { get; set; }
		/// <summary>
		/// 支付信息表
		/// </summary>
		public virtual PayInfo PayInfo { get; set; }
	}
}